const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin");

const isProduction = false;

module.exports = {
  mode: "development",
  devServer: {
    hot: true,
    hotOnly: true,
    port: "3000",
    open: true,
    compress: true,
    proxy: {
      "/api": {
        target: "http:loaclhost:8888",
        pathRewrite: {
          "^/api": "",
        },
        secure: false,
        changeOrigin: true,
      },
    },
    historyApiFallback: true,
  },
  plugins: [new ReactRefreshWebpackPlugin()],
};
